package 泛型;

import java.util.ArrayList;

public class Etext {
    public static void main(String[] args) {
        ArrayList<String> list1 = new ArrayList<>();

        Etext_text1.add1(list1, "a", "b", "c");
        System.out.println(list1);

        //参数一表示集合，参数二表示任意数量的数据
        ArrayList<Integer> list2 = new ArrayList<>();

        Etext_text1.add2(list2, 1, 2, 3);
        Etext_text1.add2(list2, 4, 5, 6, 7, 8, 9);
        Etext_text1.add2(list2, 0);
        System.out.println(list2);
    }
}
